<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
 "http://struts.apache.org/dtds/struts-2.0.dtd">

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://displaytag.sf.net" prefix="display"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags" %>

<head>
	<sx:head cache="true" />
	<link rel="stylesheet" href="/hrs-intranet/styles/displaytag.css" type="text/css" />
</head>

<s:include value="errorsSection.jsp"></s:include>

<s:form action="MeetingAction_saveEditedMeeting" cssClass="formClass" id="mentorForm" >

  	<s:hidden name="requestId"></s:hidden>

  	<s:include value="mentoringAutocompleters.jsp"></s:include>
  	
  	<s:if test="hasPermission(permissionNameConverter.getMeetingCheckedByHRPermission())" >
  		<s:checkbox key="checkedByHR" name="checkerByHR" value="meeting.checkedByHR" />
	</s:if>
	<s:else>
		<s:hidden key="checkedByHR" name="checkerByHR" />
	</s:else>
	
	<sx:datetimepicker name="lastMeetingDate" key="lastPerformedMeeting"
		displayFormat="dd/MM/yyyy" value="lastMeetingDate" disabled="true"/>
	<sx:datetimepicker name="nextMeetingDate" key="nextMeeting"
		displayFormat="dd/MM/yyyy" valueNotifyTopics="/value" disabled="true"/>
	<sx:datetimepicker id="selectedMeetingDate" name="selectedMeetingDate" key="meetingDate" value="meeting.date"
		displayFormat="dd/MM/yyyy" valueNotifyTopics="/value" required="true" />
		
	<s:include value="meetingTimestamp.jsp"></s:include>
	
	<s:if test="hasPermission(permissionNameConverter.getMentoringPerformedMeetingPermission())" >
	<s:if test="%{isPerformed}">
		<s:include value="themesAndActionsMeeting.jsp">
			<s:param name="themesAndActionsMethod" value="MeetingAction_editMeeting" ></s:param>
		</s:include>
	</s:if>
	</s:if>
	
	<table width="40%">
		<tr>
			<td width="36%">
				<div id="btnHolder">
					<s:submit action="MeetingAction_list" key="button.cancel" cssClass="btn"
						cssStyle="position:relative; left: -75px; text-align: center;"/>
					<s:submit key="button.ok" cssClass="btn" action="MeetingAction_saveEditedMeeting"
						id="okbtn" cssStyle="position:relative; left:-175px; top:-28px; text-align: center;" />
				</div>
			</td>
		</tr>
	</table>
	
</s:form>

<s:hidden id="actionMethod" value="MeetingAction_saveEditedMeeting"  ></s:hidden>

<s:include value="messageDelayedMeetingDate.jsp"></s:include>